package com.javasm.springmybatis.controller;

import com.javasm.springmybatis.entity.Admin;
import com.javasm.springmybatis.service.IAdminService;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RestController;

import java.util.List;

/**
 * @Author：Drd
 * @Version：1.0
 * @Date：2021/12/29-16:08
 * @Since:jdk1.8
 * @Description:
 */
@RestController
@RequestMapping("admin")
public class AdminController {

    @Autowired
    private IAdminService adminService;


    @RequestMapping("list")
    public List<Admin>list(){
        return adminService.list();
    }
}
